﻿<%@ Control Language="C#" ClassName="HoaDonFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataMaThanhVien" runat="server" Text="Ma Thanh Vien:" AssociatedControlID="dataMaThanhVien" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataMaThanhVien" DataSourceID="MaThanhVienThanhVienDataSource" DataTextField="TenDangNhap" DataValueField="MaThanhVien" SelectedValue='<%# Bind("MaThanhVien") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:ThanhVienDataSource ID="MaThanhVienThanhVienDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataNgayDatHang" runat="server" Text="Ngay Dat Hang:" AssociatedControlID="dataNgayDatHang" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataNgayDatHang" Text='<%# Bind("NgayDatHang", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataNgayDatHang" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataTriGia" runat="server" Text="Tri Gia:" AssociatedControlID="dataTriGia" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataTriGia" Text='<%# Bind("TriGia") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataTriGia" runat="server" Display="Dynamic" ControlToValidate="dataTriGia" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataDaGiaoHang" runat="server" Text="Da Giao Hang:" AssociatedControlID="dataDaGiaoHang" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataDaGiaoHang" SelectedValue='<%# Bind("DaGiaoHang") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Yes" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataNgayGiaoHang" runat="server" Text="Ngay Giao Hang:" AssociatedControlID="dataNgayGiaoHang" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataNgayGiaoHang" Text='<%# Bind("NgayGiaoHang", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataNgayGiaoHang" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataDiaChiGiaoHang" runat="server" Text="Dia Chi Giao Hang:" AssociatedControlID="dataDiaChiGiaoHang" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataDiaChiGiaoHang" Text='<%# Bind("DiaChiGiaoHang") %>' MaxLength="200"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataPhiGiaoHang" runat="server" Text="Phi Giao Hang:" AssociatedControlID="dataPhiGiaoHang" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataPhiGiaoHang" Text='<%# Bind("PhiGiaoHang") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataPhiGiaoHang" runat="server" Display="Dynamic" ControlToValidate="dataPhiGiaoHang" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataTinhTrang" runat="server" Text="Tinh Trang:" AssociatedControlID="dataTinhTrang" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataTinhTrang" Text='<%# Bind("TinhTrang") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataTinhTrang" runat="server" Display="Dynamic" ControlToValidate="dataTinhTrang" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataMaNhanVien" runat="server" Text="Ma Nhan Vien:" AssociatedControlID="dataMaNhanVien" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataMaNhanVien" DataSourceID="MaNhanVienNhanVienDataSource" DataTextField="TenDangNhap" DataValueField="MaNhanVien" SelectedValue='<%# Bind("MaNhanVien") %>' AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" />
					<data:NhanVienDataSource ID="MaNhanVienNhanVienDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


